<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %>
<html> 
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/>
<a href='TbCompanyServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>
    <td>序号</td>
    <td>企业代码</td>
    <td>企业类型</td>
    <td>企业名称</td>
    <td>信用</td>
    <td>企业联系人</td>
    <td>联系人手机</td>
    <td>开户银行</td>
    <td>开户人姓名 </td>
    <td>银行账号</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbCompanyList==null?'':sessionScope.tbCompanyList}" var="tbCompany" varStatus="status">
<tr>
    <td>&nbsp;${status.index+1}</td>
    <td>${tbCompany.companyCode}</td>
    <td>
    <c:forEach items="${tbCompany.tbCompanyTypeList }" var="companyTypeList" >
    ${companyTypeList.companyTypeName }、
    </c:forEach>
    </td>
    <td>${tbCompany.companyName}</td>
    <td>${tbCompany.tbCreditRating==null?'暂无':tbCompany.tbCreditRating.creditRatingScore}</td>
    <td>${tbCompany.companyContactList}</td>
    <td>${tbCompany.companyMobile}</td>
    <td>${tbCompany.bankName}</td>
    <td>${tbCompany.bankUser}</td>
    <td>${tbCompany.bankCard}</td>
    <td><a href='TbCompanyServlet?method=listById&companyId=${tbCompany.companyId }'>修改</a></td>
    <td><a href='javascript:void(0);' onclick='if(confirm("确定要删除?"))window.location="../TbCompanyServlet?method=del&delIds=${tbCompany.companyId}";'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body></html>